package com.ksc.storekeeper.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.gwtplatform.mvp.client.DelayedBindRegistry;
import com.ksc.storekeeper.client.mvp.StoreKeeperGinInjector;
import com.ksc.storekeeper.client.resources.StoreKeeperResources;

public class StoreKeeperEntryPoint implements EntryPoint {

	public final StoreKeeperGinInjector gInjector = GWT.create(StoreKeeperGinInjector.class);

	@Override
	public void onModuleLoad() {
		StoreKeeperResources.INSTANCE.storeKeeperCss().ensureInjected();
		RootPanel loader = RootPanel.get("loader");
		loader.setStyleName("in-loader");
		DelayedBindRegistry.bind(gInjector);
		gInjector.getPlaceManager().revealCurrentPlace();

	}
}
